//按照PFS的差价率按照零售自动计算成本。新零售未税*（1-差价率）
var result_FS_9 = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"", "MSG":"","DATA":"","RULE":"FS_9"}');
if(TRAIT_STORE_FLAG == "T" && !isNull(CRTL_MARGIN) && !isNull(NEW_RETAIL)) {

    var autoCost =  (NEW_RETAIL/TAX_RATE) * (1-(CRTL_MARGIN/100)).toFixed(4);

    result_FS_9.CODE = 3;
    result_FS_9.ACTION = "UPDATE";
    result_FS_9.MSG = "PFS商品自动计算成本";
    result_FS_9.DATA = '{"NEW_CASE_COST":'+autoCost+'}';
    NEW_CASE_COST = autoCost;
}
JSON.stringify(result_FS_9);
